import { request } from "../request";
export function getarticle(iid){
  return request({
    url:'/api/forum/article/'+iid,
   withCredentials:true,
  })
}
export function getallarticle(content_type){
  return request({
    url:'/api/forum/getarticle/',
    params:{
      content_type
    },
   withCredentials:true,
  })
}
export function readadd(article_id){
  return request({
    method:'post',
    url:'/api/forum/read/',
    data:{
      article_id
    },
   withCredentials:true,
  })
}

export function gettypearticle(content_type,typeid){
  return request({
    url:'/api/forum/gettypearticle/',
    params:{
      content_type,
      typeid
    },
   withCredentials:true,
  })
}